const path = require('path');
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  assetsDir: 'static',
  publicPath: './',
  chainWebpack: (config) => {
    config.resolve.alias
    .set('@$', resolve('src'))
    .set('@assets', resolve('src/assets'))
  },
  devServer: {
    port: 3000,
    client: {
      overlay: false
    },
    proxy: {
      '/h-flow': {
        target: 'http://localhost:9000', // 目标后端服务地址
      },
      '/dzkjdap': {
        target: 'http://127.0.0.1:8080', // 目标后端服务地址
      },
    }
  },
};
